package cn.iocoder.yudao.module.infra.api.weather;

import cn.iocoder.yudao.module.infra.controller.admin.weather.vo.WeatherRespVO;
import cn.iocoder.yudao.module.infra.service.weather.WeatherService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * 天气 API 实现类
 */
@Service
@Validated
public class WeatherApiImpl implements WeatherApi {

    @Resource
    private WeatherService weatherService;

    @Override
    public WeatherRespVO get15DaysWeather(String ip) {
        return weatherService.get15DaysWeather(ip);
    }
}

